package com.caption.core.process;

import com.caption.core.result.TCRequest;
import com.caption.core.result.TCResponse;

public abstract class BaseProcess implements Process {

    @Override
    public TCResponse invoke(TCRequest request) throws Exception{
         return process(request);
    }

    /**
     * 具体实现业务的方法
     * @param request
     * @return
     * @throws Exception
     */
    public abstract TCResponse process(TCRequest request) throws Exception;
}
